-- summon_skill
-- created by panyl
-- 召唤兽主动技
-- TODO

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local skillId = tonumber(prop[2]);
        local name = SkillM.query(skillId, "name");
        local level = SkillM.query(skillId, "level");

        desc = string.gsub(desc, "{0}", name);
        desc = string.gsub(desc, "{1}", level);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
